package com.zyong.design.pattern.facade.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Facade
 * @author: zyong
 * @create: 2024-04-07 22:03
 */
public class Facade {
    private SubSystem1 subSystem1 = new SubSystem1();
    private SubSystem2 subSystem2 = new SubSystem2();
    private SubSystem3 subSystem3 = new SubSystem3();

    /**
     * 子系统1的操作1方法
     */
    public void operation1() {
        subSystem1.doMethod1();
    }

    /**
     * 子系统2的操作2方法
     */
    public void operation2() {
        subSystem2.doMethod2();
    }

    /**
     * 子系统3的操作3方法
     */
    public void operation3() {
        subSystem3.doMethod3();
    }
}
